#{extends '/temp/main.html'/}
<div class="page-group">
    <div class="page">
        <header class="bar bar-nav">
            <a href="javascript:history.go(-1);" class="icon icon-left pull-left back"></a>
            <!--<a href="login.html" class="button button-link toplogin pull-right"><span class="icon iconfont">&#xe618;</span></a>-->
        #{if  isToday == 0}
            <h1 class="title">今日拜访任务</h1>
        #{/if}
        #{else }
            <h1 class="title">${saleManTask?.taskDate?.format('yyyy-MM-dd')} 日拜访任务</h1>
        #{/else}
        </header>
        <section class="content helper_task scroll_y">
            <div class="list-block">
            #{if taskItemList != null && taskItemList.size() > 0}
                <ul>
                    #{list taskItemList,as :'taskItem'}
                        <li class="item-content">
                            <div class="item-inner">
                                <div class="item-title">
                                    <p>${taskItem_index}、${taskItem?.defaultAddress?.userName}</p>
                                </div>
                                <div class="item-after"><a href="/task/record/${taskItem?.id}"
                                                           class="button button-fill external"
                                                           visit_status="${taskItem?.visitStatus}">&{'visitStatus.'+
                                    taskItem?.visitStatus}</a></div>
                            </div>
                        </li>
                    #{/list}
                </ul>
            #{/if}
            #{else }
                <span> 暂无任务</span>
            #{/else}

            </div>
        </section>
    #{include '/temp/bottom.html'/}
    </div>
</div>
<script>
    $(function () {
        $.init();
    });
</script>
